package com.xudow.app.dynamicstate_old.domain.entity;

import com.google.gson.annotations.Expose;

import java.io.Serializable;
import java.util.List;

/**
 * Created by troyl on 2016/4/28.
 */
public class Dynamic implements Serializable {
    private long id;
    @Expose
    private String title;
    @Expose
    private String content;
    @Expose
    private String imgpath;
    @Expose
    private String url;
    // 1：长文，2：普通
    @Expose
    private int type;
    // 1：私有，0：公有
    @Expose
    private int isprivate;
    @Expose
    private int attentionTypeId;
    @Expose
    private long pId;
    @Expose
    private long pCommentId;
    private long publishTime;
    private int likeNum;
    private int commentNum;
    private int forwardNum;
    private long userProfileId;
    private String userName;
    private String headUrl;
    private List<DynamicComment> commentList;
    // 是否已关注
    private int isAttended;
    private int isLiked;
    private int isCollected;
    private int collectnum;
    private String remarkName;
    // 被转发动态的发布人的用户主键
    @Expose
    private long pUserProfileId;
    @Expose
    private String pUserName;
    @Expose
    private String forwardReason;
    private long readnum;
    @Expose
    private int usertype;
    @Expose
    private int pUsertype;
    private int checkStatus;

//    gradeSubjectList":null,"gradeList":null,"subjectList":null,"gradeRecommendList":null},

    public Dynamic() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgpath() {
        return imgpath;
    }

    public void setImgpath(String imgpath) {
        this.imgpath = imgpath;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIsprivate() {
        return isprivate;
    }

    public void setIsprivate(int isprivate) {
        this.isprivate = isprivate;
    }

    public int getAttentionTypeId() {
        return attentionTypeId;
    }

    public void setAttentionTypeId(int attentionTypeId) {
        this.attentionTypeId = attentionTypeId;
    }

    public long getpId() {
        return pId;
    }

    public void setpId(long pId) {
        this.pId = pId;
    }

    public long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(long publishTime) {
        this.publishTime = publishTime;
    }

    public int getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public int getForwardNum() {
        return forwardNum;
    }

    public void setForwardNum(int forwardNum) {
        this.forwardNum = forwardNum;
    }

    public long getUserProfileId() {
        return userProfileId;
    }

    public void setUserProfileId(long userProfileId) {
        this.userProfileId = userProfileId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public List<DynamicComment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<DynamicComment> commentList) {
        this.commentList = commentList;
    }

    public int getIsAttended() {
        return isAttended;
    }

    public void setIsAttended(int isAttended) {
        this.isAttended = isAttended;
    }

    public int getIsLiked() {
        return isLiked;
    }

    public void setIsLiked(int isLiked) {
        this.isLiked = isLiked;
    }

    public int getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(int isCollected) {
        this.isCollected = isCollected;
    }

    public String getRemarkName() {
        return remarkName;
    }

    public void setRemarkName(String remarkName) {
        this.remarkName = remarkName;
    }

    public long getpUserProfileId() {
        return pUserProfileId;
    }

    public void setpUserProfileId(long pUserProfileId) {
        this.pUserProfileId = pUserProfileId;
    }

    public String getpUserName() {
        return pUserName;
    }

    public void setpUserName(String pUserName) {
        this.pUserName = pUserName;
    }

    public String getForwardReason() {
        return forwardReason;
    }

    public void setForwardReason(String forwardReason) {
        this.forwardReason = forwardReason;
    }

    public long getpCommentId() {
        return pCommentId;
    }

    public void setpCommentId(long pCommentId) {
        this.pCommentId = pCommentId;
    }

    public long getReadnum() {
        return readnum;
    }

    public void setReadnum(long readnum) {
        this.readnum = readnum;
    }

    public int getUsertype() {
        return usertype;
    }

    public void setUsertype(int usertype) {
        this.usertype = usertype;
    }

    public int getpUsertype() {
        return pUsertype;
    }

    public void setpUsertype(int pUsertype) {
        this.pUsertype = pUsertype;
    }

    public int getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(int checkStatus) {
        this.checkStatus = checkStatus;
    }

    @Override
    public String toString() {
        return "Dynamic{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", imgpath='" + imgpath + '\'' +
                ", url='" + url + '\'' +
                ", type=" + type +
                ", isprivate=" + isprivate +
                ", attentionTypeId=" + attentionTypeId +
                ", pId=" + pId +
                ", pCommentId=" + pCommentId +
                ", publishTime=" + publishTime +
                ", likeNum=" + likeNum +
                ", commentNum=" + commentNum +
                ", forwardNum=" + forwardNum +
                ", userProfileId=" + userProfileId +
                ", userName='" + userName + '\'' +
                ", headUrl='" + headUrl + '\'' +
                ", commentList=" + commentList +
                ", isAttended=" + isAttended +
                ", isLiked=" + isLiked +
                ", isCollected=" + isCollected +
                ", remarkName='" + remarkName + '\'' +
                ", pUserProfileId=" + pUserProfileId +
                ", pUserName='" + pUserName + '\'' +
                ", forwardReason='" + forwardReason + '\'' +
                ", readnum=" + readnum +
                ", usertype=" + usertype +
                ", pUsertype=" + pUsertype +
                '}';
    }
}
